Accessing Serial port in Linux:
Important Linux Commands:
Check CPU is 64 bit or 32 bit:
In some linux distributions including Ubuntu (version >
11.10), user cannot access /dev/ttyS0 and other communication ports if
he is not member of a particular group. In case of Ubuntu, user should
be member of dialout group to access communication ports.
Before 11.10, dialout group was among default user groups and every user is member of this group. But since 12.04, dialout has been removed from default groups.
This means any user who wants to access communication ports should explicitly add himself to dialout group.
Below are instructions to check required group and commands to add user to that group:
The above command shows that only root and dialout group members can access /dev/ttyS0
The above command shows that tmirza user does not belong to dialout group.
We need to put these steps in our release-notes or Getting Started
Guide. Adding user to specific group is required for NDA to work
properly. Otherwise launch configuration dialog will show error
message Unable to find any connectable communication port. Make sure you have permission to access communication ports. as shown in Permissions_error.png
NOTE: User need to log out and log back in again for adduser to be effective
Before 11.10, dialout group was among default user groups and every user is member of this group. But since 12.04, dialout has been removed from default groups.
This means any user who wants to access communication ports should explicitly add himself to dialout group.
Below are instructions to check required group and commands to add user to that group:
Checking Required group
tmirza@pkl-nutools:~$ ls -l /dev/ttyS0 crw-rw---- 1 root dialout 4, 64 Jul 31 00:49 /dev/ttyS0
Checking User Group
tmirza@pkl-nutools:~$ groups tmirza tmirza adm cdrom sudo dip plugdev lpadmin sambashare
Adding user to Group
tmirza@pkl-nutools:~$ sudo adduser tmirza dialout Adding user `tmirza' to group `dialout' ... Adding user tmirza to group dialout Done.
NOTE: User need to log out and log back in again for adduser to be effective
Important Linux Commands:
Check CPU is 64 bit or 32 bit:
- egrep -c ' lm ' /proc/cpuinfo
- uname -m
- lsb_release -a
- sudo su -
Remotely copy files without breaking links:
- rsync --progress -avhe ssh /path/of/source /path/of/destination
Good info about computer i really appreciate you man keep it up..
ReplyDeletedha city karachi map
defence karachi
dha city karachi plots for sale
defence housing authority karachi
dha city karachi prices
dha karachi city
bungalow for sale in karachi
dha phase 7 plots for sale
Hi Taimoor,
ReplyDeleteThanks for the excellent figures and explaination it gives a good
understanding of qemu.
It would be of much help if you could answer these queries.
With the information ,i have on qemu what i understand is -> "QEMU submits I/Os to host on behalf of guest" , My question are->
1> Is the I/O performed by host OS drivers ? What is the role of guest OS drivers ?
2> Does qemu emulate hardware functionality of devices in software ?
Thanks Much