Configuring to Fedora 17 Local Mirror of NITC

This will help you to configure your system to download packages from NITC fosscell fedora mirror. Login as root in your system and use the following command to create a file inside the folder /etc/yum.repos.d touch /etc/yum.repos.d/fosscellfedora Copy and paste the folowing code into the created file using your favourite editor. ## Nitc fosscell fedora local mirror for fedora 17 and 18 [NITCFedora-updates] name=Fedora $releasever - $basearch - Updates failovermethod=priority baseurl=http://fosscell. [Read More]

Offline mirror a website using wget

Use the following wget command to mirror a website wget -mkpb some-website-url -m mirrors the entire website -k converts all links to suitable web viewing. -p downloads all required files like that of the css, js … -b wget will run in background This method won’t work for many websites as their server will block wget from downloading. I will update this post soon, we can use user agents in wget to mock wget as a browser. [Read More]

Battery information inside terminal

If you want to know your battery details in terminal use upower and create an alias to it. This is helpful hack if you want to trigger events on low battery or if you are someone who uses really light desktop managers without a battery indicator. Upower command can be used to get stats on battery. upower -i /org/freedesktop/UPower/devices/battery_BAT0 Grep for the required details. upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -E "state|time|per" Create an alias, after this step you can run the command using the alias bat. [Read More]

Permanently adjust screen brightness in Ubuntu / Linux Mint

This details a fix to reset the screen brightness in Ubuntu / Linux Mint during each boot. This idea will work only if you have a file named brightness in the folder /sys/class/backlight/acpi_video0 and the hack is relevant for the Ubuntu (version < 12.04) where they had a bug in which the brightness is too high during each restart. To know your systems current brightness level. cat /sys/class/backlight/acpi_video0/brightness Change brightness by changing the value [Read More]