w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
chromedriver doesn't run in debian wheezy
@AnonymousLurker: Someone complained about this problem over on the google code page: https://code.google.com/p/chromedriver/issues/detail?id=454 Reason I'm mentioning it here, is because someone else on the thread actually got a clean build (32bit Release) for Debian Wheezy, which you can still download here (as of Nov. 9). I've got it working on my own personal jenkins server (Debian GNU/Linux 7.2 (wheezy) 64bit).

Categories : Python

How do I install PHP5.4.16 on Debian Wheezy?
You're targeting too specific a version. Repositories won't routinely keep multiple builds of the same package around, so a specific build like 5.4.16-1~dotdeb.1 will be superseded by newer builds. At the moment, listing the files on the repository shows a build of 5.4.19-1~dotdeb.1, but really all you want is to select the latest version of PHP 5.4, and let APT update it in the normal way. If the dotdeb packages are for newer versions of PHP than any other repositories you have installed, it will be the default anyway, so you can just run: apt-get install php5-fpm

Categories : PHP

Compiling Kernel on Debian Wheezy
The -j4 argument to make-kpkg (which gets passed to the underlying make) only sets the number of parallel compilation processes during the kernel build (and has no influence on the produced kernel packages). And it does not matter that much (so -j4 or -j8 won't make a very big difference in term of build time). I often pass only -j3 to leave a core available to other processes (e.g. my web surfing or my email reading during the kernel compilation). Also, some part of make-kpkg is intrinsically serial and cannot be parallelized (some tar running....) And you could even remove the -j4 (same as -j1): kernel build time will increase, but your machine will be more responsive during it PS: you don't need both sudo and fakeroot if the parent directory (..) is user-writable. It will contain th

Categories : Linux

Debian Wheezy : how to set noatime parameter for root FS?
You could remount it with the noatime option after the system has already booted. in my case to remount the root filesystem with noatime: sudo mount -o remount -o noatime / you can see the current options with the command mount and checking the line that say on / /dev/disk/by-uuid/3984fee6-c70a-4fee-96a0-6d4a4103abc6 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)

Categories : Linux

Making a user in Samba - Debian 6 32bit - No commands working?
Solution: Setup Apt-get upgrade sudo apt-get install samba smbfs sudo mkdir –m 0777 /pathofdrive Editing the samba config sudo vi /etc/samba/smb.conf Copy this: # Global parameters [global] workgroup = HOME netbios name = SAMBA server string = Samba Server %v map to guest = Bad User log file = /var/log/samba/log.%m max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 preferred master = No local master = No dns proxy = No security = User # Share [Data] path = /disk2/data valid users = joel read only = No create mask = 0777 directory mask = 0777 Adding a user: # useradd -c "Joel Nahrgang" joel # smbpasswd -a joel New SMB password: secret Reenter SMB password: secret Added user joel Restarting Samba:

Categories : Linux

Unable to access Samba folder from Windows (Using Raspberry Pi XMBC as a Samba Server)
That may depend on the directory and file rights. If the us who runs smb have no access rights, you can't read or write files. You can find out file permissions with ls -la you will also see owner and owner group. You can try to set read and write permissions for all (chmod 777 directory -R). If this was the problem, then you should give read and write permissions only to the user that runs smb. Set permissions for all back to 0 (770) because of security reasons. Here you find a tutorial on set up samba for Rasapberry Pi.

Categories : Windows

What is changelog.Debian.gz file during debian packaging?
When packing in debian, inside your project directory there's a directory named debian, which is where we keep files regarding instructions of how to pack your software, as well as relations with other packages, etc. We can call it you package control files. Among them, there's one called changelog, which looks like this: mypackage (version-revision) unstable; urgency=low * Changelog messages -- Your Name <your@email.com> Mon, 13 Aug 2012 14:09:01 -0300 (...) This file is used by the packaging software (dpkg-buildpackage) to know the name and version of your package. It also has info like the mantainer, changelogs, etc. After you build the package and install it, this file will be located at /usr/share/doc/mypackage/changelog.Debian.gz compressed in gzip format. You can che

Categories : C++

Building full gcc-3.3 on Wheezy
yes, well. the preferred way would be to port your legacy project to build with a current g++ (4.8). this would allow your project to run on any wheezy system (and hopefully on futgure systems like jessie/...) if this is not an option, you should first try to download the source package from your target release (wheezy), modify debian/control to build all the packages you need, and build them. chances are high, that gcc-3.3 and friends are disabled only to guarantee that nobody uses obsolete software anymore (so debian people don't have to worry about maintaining gcc-0.1 through 6.66). as a last ressort you could try to get the source package from lenny and build that. chances are high that this will be quite complilcated, and bug-ridden. if youplan using your legacy project in two yea

Categories : Gcc

How Should I Debug Samba with GDB
Download samba source code from http://www.samba.org and compile it (without source code, it will be impossible to do symbolic debugging). Stop or kill any other samba instances. Start samba under gdb: gdb <path/to/compiled/smbd> Specify smbd parameters: set args -i -M single Parameters -i -M single force smbd to start as single process, do not daemonize and print all messages and errors to stdout/stderr. Now, you can set breakpoints and trace your source code as you normally would with any other program. Note: instead of using gdb, you might find more convenient to use gdb-tui (gdb text user interface), or use other debuggers like ddd.

Categories : Debugging

Automount samba folder on Mac
I followed https://discussions.apple.com/thread/3221944?start=15&tstart=0 The key is setting the mount point in your home directory is by following three steps. Add this line to the end of /etc/auto_master: /- auto_smb Created /etc/auto_smb with the following line: /Users/user/mount -fstype=smbfs,soft smb://domain;user:password@server/folder Run automount: automount -vc The troubleshooting points are: If you encounter "Too many users" you need to review your SMB path for syntax errors. Also be careful of incorrect username / passwords, or passwords with special symbols. e.g. @ would need to be replaced with %40.

Categories : Osx

samba shares seen in windows, but cannot connect
Add the following to your [global] section: guest account = nfsnobody map to guest = bad user And your public share could look something like: [Backups-Rhonda] path = /raid1/rhonda writable = yes guest ok = yes public = yes force user = root force group = root create mask = 666 directory mask = 666 security mask = 666 force create mode = 666 Make sure to restart the samba service.

Categories : Misc

authenticate against with Active Directory via samba
I recommend you this article http://technet.microsoft.com/en-us/magazine/2008.12.linux.aspx from Microsoft. The configure file seems OK.

Categories : Misc

qt transfer a file from local to a samba shared
You can not do that QFile just spports local files but you can mount it to a posix folder and access to that folder. You can find a guide about how to mount a samba shared folder here

Categories : C++

Android - Mount a Samba share in code
Probably smbfs/cifs are currently not supported by your kernel. As Delyan said, ensure your kernel can mount these filesystem : $ cat /proc/filesystems nodev sysfs nodev rootfs nodev bdev nodev proc nodev cgroup nodev tmpfs nodev debugfs nodev sockfs nodev usbfs .... If they are not listed, you should try to do a modprobing (sometimes the module you want just have to be activated), get root access then : # modprobe <modulename(without.ko)> e.g. : # modprobe cifs If it doesn't work you will have to change or recompile your kernel (including appropriate modules).

Categories : Android

iOS file sharing with SAMBA / CIFS protocol
If I understood you correctly you want to connect with your app files via WiFi . Basically you need to open a local server within your app. CocoaHTTPServer may be help you with this issue.

Categories : Iphone

Why would my samba connection fail after an upgrade to windows 2012?
Windows Server 2012 includes latest version of SMB protocol 3.0 and it full of really interesting updates and improvements (details and some relevant discussion here). As with any serious improvements there is a compromise in terms of legacy clients support. Probably there is no support for SMB 3.0 on your Samba client side or some backward compatibility should be enabled on Server 2012 side.

Categories : Java

Apache/php cannot access remote cifs/samba share
have you tried //ip/foleder/ /mnt/name cifs username=user,password=passwd,nounix,noserverino,defaults,users,auto,gid=33,uid=33 0 0 change gid and uid to the apache user u can find it out like this: cat /etc/passwd | grep www-data

Categories : Apache

I'm trying to connect from windows to Samba Shared folder on linux using php
i found solution for connection using this code $sharename = '\\LinuxIPAddressShared_folder'; $username = 'username'; $password = 'password'; $letter = 'Z:'; if (!is_dir($letter . "/TMP")) { $WshNetwork = new COM("WScript.Network"); $WshNetwork->MapNetworkDrive($letter, $sharename, FALSE, $username, $password); } and is working perfect

Categories : PHP

How to access a shared location in solaris from windows machine using samba with java?
"Connection refused" means that host is not listening on that port. You need to ensure the samba service is running on that host. I would check you can mount the file system as a drive letter first.

Categories : Java

Laravel 4 on Debian 6
5.3.3 maybe was de last estable, not de last version supported. You can install manually following this guide: http://davejamesmiller.com/blog/installing-php-5-4-on-debian-6-squeeze

Categories : PHP

Debian - GIT upgrade from 1.5 to 1.7
You are running a very old version of Debian (version 5). It is not even supported, so maybe consider upgrading it. Otherwise, you may get away with just building a later git version yourself.

Categories : Linux

Can't cd via ssh script - Debian
If WinSCP is in text or auto transfer mode the End-of-line characters setting in the Environment dialog might have kicked in, possibly altering your linebreaks.

Categories : Shell

.jar doesnt run on debian
if you are using eclipse then first clean all files using following steps project->clean->select clean all -> and then click on after that right click on your project Export->click on Runnable jar->click next next and then finish Problem will be solve.

Categories : Java

nginx 403 forbidden under Debian 7
Your issue is that http://localhost/install passes by the second rule of the try_files which is $uri/ so it tries to access install as a folder, but you don't have autoindex on, so it fails with a forbidden error. try_files $uri $uri/ /index.php?$args; I suggest removing the $uri/ part. try_files $uri /index.php?$args;

Categories : Nginx

Mongodb failing on Debian
I had the exact same error message, what helped for me was commenting out every loopback (127.0.0.1, ::1) entries from my /etc/hosts file. Typically something like this: 127.0.0.1 localhost ::1 localhost Then try starting the server. If that doesn't help, please paste your MongoDB log. cat /var/log/mongodb/mongodb.log

Categories : Mongodb

How can I install qt5 to Debian using commandline?
You should be able to run the qt-installer in a decent debian version. Get Version by: cat /etc/issue On older versions or "unsupported" versions you can still download the sources and build the libraries yourself, which is probably your way to go, since the vortex86-builds are pretty limited in compiler flags. Compiling is rather easy, depending on your needs. The configure script itself gives you a lot of hints regarding possible flags. Another alternative is to find a user-managed repository that has QT5 for your debian version and add this repository to your sources.lst, so you could perform a apt-get install libqt5.

Categories : Qt

Installing nodejs on Debian 6
I don't know the steps you took to compile from source. This is what I used and It worked well on multiple servers: sudo apt-get install git build-essential sudo apt-get install wget wget (link to node.js source -> found on nodejs.org/download/) tar xvf node(press tab to auto load the version you're on) pushd node(again, use tab) ./configure make sudo make install TO TEST: node 0.1 + 0.2 You should receive a response. All set.

Categories : Node Js

Debian - default ip per user?
you could use a crafty firewall that marks packages originating from processes owned by a given user and then rewrites packages accordingly, as described here.

Categories : Sockets

Debian apache2 overflow
Please have a look at the apache wiki regarding this dummy connections http://wiki.apache.org/httpd/InternalDummyConnection Please revise your settings for MinSpareServers and MaxSpareServers.

Categories : Linux

Installing Java EE 7 SDK on Debian 7.1.0
Don't download the package from Oracle. Try the ubuntu package like so. $ echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list $ echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list $ apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886 $ apt-get update $ apt-get install oracle-java7-installer You may as well use the update-alternatives tool from java-common package which let you update all alternatives belonging to one runtime or development kit at a time. $ sudo update-java-alternatives -l $ sudo update-java-alternatives -s j2sdk1.7-oracle More info here https://wiki.debian.org/JavaPackage

Categories : Java

Opscenter 3.2.x not working on Debian 7
This is a known issue, but the workaround is documented here: http://www.datastax.com/documentation/opscenter/3.2/webhelp/#opsc/troubleshooting/opscTroubleshooting_g.html#topic_opsc_troubleshooting See the section relating to that import error.

Categories : Cassandra

installing libssl0.9.8 on debian 7
On Debian 7 you can find only libssl1.0.0, but libssl0.9.8 is part of debian 6 (squeeze). You can get the packet from here and manually install it with a command like dpkg -i libssl0.9.8_0.9.8o-4squeeze14_i386.deb For 64 bits architecture, you need the 32 bits libc and zlib1g binaries before installing it, because utorrent binaries are actually available for 32 bits only. In order to add them you need to add i386 architecture dpkg --add-architecture i386, add [arch=amd64,i386] to repositories in /etc/apt/sources.list. For details, see http://wiki.debian.org/Multiarch/HOWTO. You then need to run apt-get update; apt-get install libc6:i386 zlib1g:i386

Categories : Linux

PHP network monitoring debian
The info you need is in /proc/net/dev # cat /proc/net/dev Inter-| Receive | Transmit face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed lo: 177937 1304 0 0 0 0 0 0 177937 1304 0 0 0 0 0 0 eth0:16268834 14619 0 0 0 10091 0 0 1201136 10555 20 0 0 0 0 0 For the transfer rate you will have to calculate the delta from the previous capture but the value will be approximate.

Categories : PHP

Boot Debian with Android
You can use Script Manager (https://play.google.com/store/apps/details?id=os.tools.scriptmanager) to run script with the following contents at boot: #!/system/bin/sh deb s Use your own parameters to "deb" to launch whatever service you need. In this case I've started the ssh server.

Categories : Android

RewriteRule on Debian to shorten an URL
Include the full domain name in the substitution: RewriteRule ^/mon/all/?$ http://10.0.11.11:8089/monitorix-cgi/monitorix.cgi?mode=multihost.all&graph=all&when=1day&color=black [NC,L] (I've tested this). For the benefit of others reading this, the /?$ in the pattern means you match either /mon/all or /mon/all/ but nothing afterwards; the question mark makes the preceding token - the closing forward-slash - optional, the $ indicates the end of the string. Tip: Use RewriteLogLevel to see exactly what's happening when you're testing rewrite rules (remember to turn it off afterwards) - in particular look for 'matched' and 'not-matched' at the end of the line.

Categories : Apache

Debian: Syslog - Create a own log file
Two issues come to my mind regarding your problem: # 1 Have you restarted the sysklogd server after adding your application to the /etc/rsyslog.conf? /etc/init.d/sysklogd restart # 2 How is your php configured to log? -> php.ini error_log = syslog

Categories : PHP

Install experimental package on debian
Add deb http://ftp.debian.org/debian experimental main contrib non-free to your /etc/apt/sources.list or into /etc/apt/sources.list.d/experimental.list then execute apt-get update apt-get -t experimental install deluge See Debian Wiki

Categories : Linux

Cannot receive emails from Debian server
You can't send emails from local server directly You can take a look at this question Send email from localhost localhost term means it's not equipped with mail capability even though you can try this code to know if it has built in mail server or not if (mail('email address','subject','message') === true){ echo 'SENT'; }else{ echo 'NOT SENT'; }

Categories : PHP

load xml to mysql under debian linux
The XML file you are trying to import is not formatted using a schema that MySQL knows how to import. You will need to convert it yourself. The formats that MySQL will recognize are defined here: http://dev.mysql.com/doc/refman/5.5/en/load-xml.html

Categories : Mysql

amazon debian AMI user data
In fact, the user-data script is executed only one time. If you create a AMI based on the Debian marketplace AMI, when you'll launch your "custom" AMI, the user-data has already been executed when you have started the Debian base AMI. If you want that the user-data will be executed on a custom AMI, you must change the insserv for the init.d ec2-run-user-data: sudo -i insserv -d ec2-run-user-data And now you can create an AMI. Matt

Categories : Amazon



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.