After switching ISP providers I have replaced my trusty TP-LINK 1043ND running OpenWrt with Cisco EPC3928S which also has Gigabit Ethernet ports and 300Mbit WiFi I noticed problems with my RTL8152 based USB->Ethernet adapter which I was using with my gk802 device. Continue reading “Force 100Mbit ethernet speed on RTL-8152 USB ethernet adapter”
Analyze and optimize boot up with systemd
To measure boot times use
systemd-analyze
Result should look something like:
Startup finished in 2.463s (kernel) + 53.052s (userspace) = 55.516s
Continue reading “Analyze and optimize boot up with systemd”
Force fsck on gk802 and other i.MX6 based systems
I had an issue with my root partition and I could not force fsck to be executed with creating /forcefsck.
Here is my /uEnv.txt that handles mounting of /dev/root:
bootargs_video=gpumem=64M video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24 fbmem=10M linux=boot/dongle.img devicetree=boot/dongle.dtb options=console=ttymxc3,115200n8 root=/dev/mmcblk0p1 ro rootwait
Continue reading “Force fsck on gk802 and other i.MX6 based systems”
Purge old config files of “rc” marked packages in Debian / Ubuntu
If you list your packages for example with “dpkg -l” and notice following:
rc linux-image-3.14-7.dmz.2-liquorix-686 3.14-11 rc linux-image-3.14-8.dmz.1-liquorix-686 3.14-12 rc linux-image-3.14-9.dmz.1-liquorix-686 3.14-13 rc linux-image-3.15-2.dmz.1-liquorix-686 3.15-1
Continue reading “Purge old config files of “rc” marked packages in Debian / Ubuntu”
How to delete files older than certain number of days
One thing that comes very handy is usage of cron to make scheduled job to delete old files so that you can free up some space on your hard drive
# Delete Apache logs older than 60 days
find /var/log/apache2/ -mtime +60 -exec rm {} \;With this simple script you will search through Apache logs in folder /var/log/apache2, select the ones with access time older than +60 (60 days) and execute delete with rm command.
