Thursday, December 17, 2015
To get the lines between the two pattern in a file in BOSS Linux
To get the lines between the two pattern in a file.txt use the following sed command format
sed -n "/pattern1/,/pattern2/p" file.txt
Thursday, December 10, 2015
Lenovo thinkcentre mini pc issue :system is restarted when shtdown or power of in BOSS Linux
kindly go to the BIOS and disable the automatic power on option this will prevent the system rebooting when shutdown or power off.
F2 -> power -> Automatic Power On -> Wake on LAN -> Automatic
this should be changed to
F2 -> power -> Automatic Power On -> Wake on LAN ->Disabled
F2 -> power -> Automatic Power On -> Wake on LAN -> Automatic
this should be changed to
F2 -> power -> Automatic Power On -> Wake on LAN ->Disabled
Wednesday, November 18, 2015
Edit a file directly using "sed" command in Linux
sed
is stream editor, but can edit files directlysed -i -e 's/foo/bar/g' hello.txt
s
is used to replace the found expression "foo" with "bar" and g
used toreplace any found matches.
-i
option is used to edit in place on hello.txt.-e
option indicates a command to run.Tuesday, October 27, 2015
Booting the BOSS Linux as in command prompt mode
1.Open the /etc/default/grub file and uncomment the following line
GRUB_TERMINAL=console
2.Set the resolution to 1024x768
GRUB_GFXMODE=1024x768
3.issue the following commands after above modification
sudo update-initramfs -u -k 2.6.32.59
sudo update-grub
4.This was done in BOSS Linux due to not able to boot the windows 7 in the dual mode.
or click and download following script and run it as a sudo user
flicker_removng_console_mode_boot_script
Tuesday, June 16, 2015
Dell Server BCM5709S Ethernet card is not Working in BOSS [SOLVED]
1.issue following commands
apt-get update
apt-get install firmware-bnx2
2.Otherwise download the firmware bnx2/bnx2-mips-09-6.2.1b.fw and copy in to /lib/firmware.
apt-get update
apt-get install firmware-bnx2
2.Otherwise download the firmware bnx2/bnx2-mips-09-6.2.1b.fw and copy in to /lib/firmware.
Friday, June 12, 2015
IBM Lenovo Thinpad X250 Function Keys Not Working In BOSS Linux [Solved]
Add following line in
/etc/rc.local
modprobe thinkpad_acpi
force_load=1
exit 0
Wednesday, June 3, 2015
Lenovo Laptop issues and Solved in BOSS GNU/Linux
Lenovo Issues For AMD Processor based Laptops:
Wireless Card is realtek then install the firmware-realtek package from repository
Solution:
1.Downlaod the Linux_BT_USB_2.11.20140318_hp.zip patch.
2.Issue “make install” command to apply the patch.
Flickering Issue:
Download the package fglrxmodulesdkms_14.9+ga14.2012 and install the package.
dpkg -i fglrxmodulesdkms_14.9+ga14.2012
Web Camera Issue:
Firmware update for BIOS through windows
Bluetooth
Download the rtlwifi_linux_mac80211_0020.1030.2014v676.P1.zip path
Extract zip file and issue the following command in the terminal
make install
Lenovo Laptops Intel Based Processor:
For flickering issue
In /etc/default/grub file uncomment and change the following line
GRUB_GFXMODE = 1024 x 768
after this run in terminal
sudo updategrub2
Also download the Backlight patch installed for the toggling external projector or monitor display.
Web Camera Issue:
Firmware update for BIOS through windows
Wireless Card r8192ee
Follow the below steps
1. Copy rtl8192eefw.bin firmware to the /lib/firmware/rtlwifi/
2. rmmod r8192ee
3. modprobe r8192ee
Thursday, May 7, 2015
Installing Samba and NFS server in BOSS and Setting NFS HOME in BOSS Linux
Step 1:
Install BOSS 64 bit version
Extract the Samba source kept under /opt
Open terminal and run below commands as admin user
cd /opt/samba-4.1.17
./configure
make
make install
Step 2:
Once the Samba is installed successfully , we can provision the samba domain now.
Configure and Setup a Static IP for the machine. Eg: 192.168.1.10
Provide a Unique Hostname for the server. Eg: bossbigserver
Decide a Domain name that need to be given for the provision . Eg: rmdlab.lan
So the FQDN for the machine will be bossbigserver.rmdlab.lan
Add the Domain name as the default entry in /etc/resolv.conf .
Eg:
search rmdlab.lan
domain rmdlab.lan
nameserver 192.168.1.10
Once all these steps are done , open terminal and run below commands as admin user
cd /usr/local/samba
bin/samba-tool domain provision
Give rmdlab.lan as the domain name
For other values give the default answers
For Bind configuration provide the local ip I.e 192.168.1.10
Give a strong Admin password with all alphanumeric and punctuation combiantion
Once all the above values are given properly , the samba will be provisioned successfully.
Step 3:
Once done , run
sbin/samba
This should start Samba service , check it in
sudo ps aux | grep samba
Step 4:
Adding users to Samba:
/usr/local/samba/bin/samba-tool user add
Give a strong password for the users with all the combinations.
To list all the users added to the domain , use
/usr/local/samba/bin/samba-tool user list
Setting NFS HOME:
Open terminal and run below commands as admin user
mkdir /var/home
chmod 777 /var/home
Open /etc/exports and add below entry
/var/home
(rw,sync,no_root_squash,no_subtree_check)
Run
exporfs -a
/etc/init.d/nfs-kernel-server restart
Now the Client machine can be authenticated from Server with Samba
username and passwrod
credntials and have the Home directory under /var/home in server.
Wednesday, April 29, 2015
BROADCOM BCM43142 Not Working in 32 bit BOSS Linux [SOLVED]
Step1:
Download the broadcom driver sta from following location.
http://www.broadcom.com/docs/linux_sta/hybrid-v35-nodebug-pcoem-6_30_223_248.tar.gz
Step2:
Download the broadcom driver sta from following location.
http://www.broadcom.com/docs/linux_sta/hybrid-v35-nodebug-pcoem-6_30_223_248.tar.gz
Step2:
Setup the directory by untarring the proper tarball:
For 32 bit: hybrid-v35-nodebug-pcoem-portsrc.tar.gz
For 64 bit: hybrid-v35_64-nodebug-pcoem-portsrc.tar.gz
Example:
# mkdir hybrid_wl
# cd hybrid_wl
# tar xzf /hybrid-v35-nodebug-pcoem-portsrc.tar.gz or
/hybrid-v35_64-nodebug-pcoem-portsrc.tar.gz
Step3:
Build the driver as a Linux loadable kernel module (LKM):
# make clean (optional)
# make API=WEXT CONFIG_DEBUG_SECTION_MISMATCH=y
Step4:
modprobe wl
Then the wifi is enabled successfully
Friday, April 24, 2015
Canon Printer Setup in BOSS
Step 1:
Download and install the drivers
Download the drivers cndrvcups-capt_2.60-1_i386.deb cndrvcups-common_2.60-1_i386.deb
Open terminal and Install the packages
sudo dpkg -i cndrvcups-common_2.60-1_i386.deb cndrvcups-capt_2.60-1_i386.deb
Step 2: Install other postscript fonts & program to reserve ports for the printer
Install portreserve, gsfonts, gsfonts-other, gsfonts-X11
sudo dpkg -i postreserve gsfonts gsfonts-x11 gsfonts-other
Step 3: Restart the printer
sudo /etc/init.d/cups restart
Step 4: Add printer and start the Cannon Printer daemon.
sudo /usr/sbin/lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v ccp://localhost:59787 -E
sudo /usr/sbin/ccpdadmin -p LBP2900 -o /dev/usb/lp0
sudo /etc/init.d/cups restart
sudo /etc/init.d/cups status
Step 5: Check the printer status
captstatusui -P LBP2900
If you are seeing the message “Ready to print”, you are done!. Else you may have to restart the system,
and repeat all the steps from step 4.
Step 6: Start the printer service for every system startup
sudo gedit /etc/rc.local
Add
/etc/init.d/ccpd start
before the word “exit” , save the file and close
Wednesday, March 11, 2015
Tripwire In BOSS Linux Configuring and Policy Updation
Step 1: Install Tripwire and Tripwire depedencies by apt-get command
root@ithelpblog:~# sudo apt-get install tripwire
Step 2: Initializing Tripwire database
root@ithelpblog:~# sudo tripwire –init
Step 3: Configure tripwire policy
root@ithelpblog:~# sudo vi /etc/tripwire/twpol.txt
Step 4: Update Tripwire policy
root@ithelpblog:~# sudo tripwire –update-policy –secure-mode low /etc/tripwire/twpol.txt
Step 5: Check if have any changes on your Ubuntu/Debian system
root@ithelpblog:~# tripwire –check –interactive
root@ithelpblog:~# sudo apt-get install tripwire
Step 2: Initializing Tripwire database
root@ithelpblog:~# sudo tripwire –init
Step 3: Configure tripwire policy
root@ithelpblog:~# sudo vi /etc/tripwire/twpol.txt
Step 4: Update Tripwire policy
root@ithelpblog:~# sudo tripwire –update-policy –secure-mode low /etc/tripwire/twpol.txt
Step 5: Check if have any changes on your Ubuntu/Debian system
root@ithelpblog:~# tripwire –check –interactive
Subscribe to:
Posts (Atom)
Linux Kernel Compilation
Step 1: Install Required Packages Install additional packages before building a kernel. To do so, run this command: sudo apt-get install gi...
-
Step:1 sudo apt-get install python-pip Step:2 pip install -U selenium for python3 and more install Step:1 sudo apt-get...
-
This process will common for all HP Printers like HP LJ P 1007, P1020,P1020 plus,1022,3050 MFP, M 5035 MFP,P 2015N and Configuring the HP ...
-
TOKEN=$(curl -u "<username>:<password>" -k -X GET "https://<hostname or ip address>:<port number>/se...