I tried to figure out (as tester) why atomac version 1.1.0 gave error httplib.BadStatusLine: '' when running from script.
When running from command line it worked very well : getwindowlist(); getobjectlist().
Well... I couldn't . So having a machine with Xcode installed I did upgrade for atomac from git:
git clone https://github.com/ldtp/pyatom.git
And the problem disappears :)
luni, 26 ianuarie 2015
luni, 13 octombrie 2014
Jenkins no tty
When running a jenkins job which does a sudo command in a script, some errors occurs related to failed authentication.
A possible fix for it is:
- add user in sudoers without password (or use ssh keys)
- on redhat systems (including centos) we still get:
sudo: sorry, you must have a tty to run sudo
To solve it , comment the line in /etc/sudoers using visudo :
A possible fix for it is:
- add user in sudoers without password (or use ssh keys)
- on redhat systems (including centos) we still get:
sudo: sorry, you must have a tty to run sudo
To solve it , comment the line in /etc/sudoers using visudo :
Defaults requiretty
luni, 6 ianuarie 2014
Ubuntu update asks for cdrom
There are some new updates in Ubuntu.
Happy you want to install them.
But a strange messages raises asking to insert the release cd in /media/cdrom.
How to solve it:
- start Update Manager
- click Settings button
- on each tab verify the all cdrom mentions to *NOT* be checked. If are, un-tick them.
I had it on 2nd tab - Other Software on first line, not on first tab Ubuntu software.
Happy you want to install them.
But a strange messages raises asking to insert the release cd in /media/cdrom.
How to solve it:
- start Update Manager
- click Settings button
- on each tab verify the all cdrom mentions to *NOT* be checked. If are, un-tick them.
I had it on 2nd tab - Other Software on first line, not on first tab Ubuntu software.
joi, 5 septembrie 2013
marți, 2 iulie 2013
Intercept communication
Tools used in testing
- snoop - f=ussdb_en_1bigItem2Words.txt ; /usr/sbin/snoop -x 10.33.96.91 port 8080 | tee $f
- fiddler http://fiddler2.com/
- tcpMon
- wireShark
- snoop - f=ussdb_en_1bigItem2Words.txt ; /usr/sbin/snoop -x 10.33.96.91 port 8080 | tee $f
- fiddler http://fiddler2.com/
- tcpMon
- wireShark
marți, 18 iunie 2013
Ubuntu workgroup of Windows network
ubuntuforums.org/showthread.php?t=1169149
Problem 2:
To fix this problem will require some editing of configuration files via CLI. There are easier ways to change the workgroup that Ubuntu belongs to, but many of these methods also tend to cause other problems.
The best and most reliable way to change Ubuntu's workgroup is by editing the /etc/samba/smb.conf file. This means that it may be easier to assign all of your Windows computers to the “WORKGROUP” workgroup (as outlined under "Problem 1"). Otherwise, use the following directions to edit /etc/samba/smb.conf in order to change the workgroup that Ubuntu is a member of.
Problem 2 - part 1
Open this file for editing with the following command:
Scroll down to the section that looks like this:
Change “WORKGROUP” in “workgroup = WORKGROUP” to match your Windows workgroup.
Problem 2 - part 2
It may also help to add netbios name = computer-name just below "workgroup = WORKGROUP".
Your "computer-name" can be anything, but common convention is to use the name you gave it when you installed Ubuntu (everything after the "@" symbol on the CLI prompt).
For example, here's my CLI prompt:
And here's my smb.conf file:
If, after running the above command, you see this error (Since Jaunty):
Use the following command (or reboot) instead:
Problem 2:
To fix this problem will require some editing of configuration files via CLI. There are easier ways to change the workgroup that Ubuntu belongs to, but many of these methods also tend to cause other problems.
The best and most reliable way to change Ubuntu's workgroup is by editing the /etc/samba/smb.conf file. This means that it may be easier to assign all of your Windows computers to the “WORKGROUP” workgroup (as outlined under "Problem 1"). Otherwise, use the following directions to edit /etc/samba/smb.conf in order to change the workgroup that Ubuntu is a member of.
Problem 2 - part 1
Open this file for editing with the following command:
Code:
gksudo gedit /etc/samba/smb.conf
Code:
#======================= Global Settings =======================
[global]
## Browsing/Identification ###
# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = WORKGROUP
Problem 2 - part 2
It may also help to add netbios name = computer-name just below "workgroup = WORKGROUP".
Your "computer-name" can be anything, but common convention is to use the name you gave it when you installed Ubuntu (everything after the "@" symbol on the CLI prompt).
For example, here's my CLI prompt:
Code:
dmizer@shinkansen:~$
Code:
#======================= Global Settings =======================
[global]
## Browsing/Identification ###
# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = WORKGROUP
netbios name = shinkansen
Now, save the file by clicking on "File" > "save", close gedit, and restart samba with the following command (Pre Jaunty):
Code:
sudo /etc/init.d/samba restart
Code:
sudo: /etc/init.d/samba: command not found
Code:
sudo service smbd restart
duminică, 26 mai 2013
How remove others tag I made in Facebook?
- you want to tag yourself in some pictures
- but mistakenly you clicked on others name
- you tagged others in facebook, even you didn't want that
The facebook help tells how to remove tag of yourself . But you want to remove tag of the others you made.
On PC browser open the picture and notice on right the names tagged (on that big white background with picture ) . Put mouse over them. A menu appears allowing to remove the tag of others you added.
- but mistakenly you clicked on others name
- you tagged others in facebook, even you didn't want that
The facebook help tells how to remove tag of yourself . But you want to remove tag of the others you made.
On PC browser open the picture and notice on right the names tagged (on that big white background with picture ) . Put mouse over them. A menu appears allowing to remove the tag of others you added.
Abonați-vă la:
Postări (Atom)
