w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
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

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

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

virtualbox (Win 7) network: guest trying to see guest on separate host
Got an answer to this on the virtualbox forum, The bridged adapter allows for this. https://forums.virtualbox.org/viewtopic.php?f=2&t=56403&p=261118#p261118

Categories : Networking

access mysql in host from guest virtualbox
Your external IP being static or not has no bearing to accessing a virtualized server on your LAN. Set VirtualBox to bridge mode. Simply determine your computer's DHCP-selected internal IP (usually 192.168.1.SOMETHING) and replace the last number with another that is less than 250. For example, if your computer was 192.168.1.6, 192.168.1.70 would work fine on the VM(pick a high number to void conflicts). Set it by using the control panel->adapter settings. Reboot the VM. Connect to MySQL at 192.168.1.70(or the address you picked earlier). Note: If your computer's address is in a different subnet (192.168.0.XXX, 10.XX.XX.XX, etc) change the last number and keep the first numbers the same as on the host.

Categories : Mysql

Magento REST API, User given admin role but only granted Guest access
I was unable to find a solution using the rauth library as shown in the example above, but was able to get it working using oauthlib/requests_oauthlib as follows:- from requests_oauthlib import OAuth1 as OAuth import requests oauth = OAuth(client_key=consumer_key, client_secret=consumer_secret, resource_owner_key=access_key, resource_owner_secret=access_secret) h = {'Content-Type': 'application/json', 'Accept': 'application/json'} r = requests.get(url='http://mysite.com/api/rest/products', headers=h, auth=oauth) print r print r.content print r produces "< Response [200] >", and r.content contains the json-formatted list of products. I'm surmising that rauth was incorrectly calculating the nonce value or perhaps the encoding was off - something in the request it produced was upsettin

Categories : Magento

PayPal Express not giving option for Check out as Guest, even if it is active (PayPal Paying Guest option to YES)
This is all based on browser cookies. If you cleared your browser cookies and then try again prior to logging in to any PayPal account you should see the option for Guest Checkout more prominently displayed. If you want to force this regardless of browser cookies you can set the following parameters in your SetExpressCheckoutRequest. SOLUTIONTYPE=Sole LANDINGPAGE=Billing That will force the full credit card form to be displayed by default along with the option to login and pay with PayPal. For Magento if it's not doing this for you by default you'll need to create a module to extend the core Express Checkout module so that you can add those parameters accordingly.

Categories : Magento

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

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

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

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++

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

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

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

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

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

PayPal guest payments outside US
Both PayPal Payments Standard and PayPal Express Checkout support guest transactions; you really don't need Adaptive Payments for this. I suggest you take a look at the Express Checkout documentation, including the Getting Started guide we have available.

Categories : Paypal

Create a guest without any users
In start action you are setting session[:guest_id] and current_user you are trying to find through session[:current_user_id]. I will return nil. Your current_user should be like: def current_user @_current_user ||= Guest.find_by_id(session[:current_user_id]) if session[:current_user_id] end start should be like: def start @guest = Guest.create if @guest.save session[:current_user_id] = @guest.id redirect_to would_you_rather_path(:goalkeeper) end end One more thing, we should always try to use the default 7 action that rails provides, You should use create action instead of start.

Categories : Ruby On Rails

Atmosphere broadcast from outside as a guest
If you are asking how to send a broadcast message to all clients, based on theirs documentation, the way to broadcast all resources should be this: Future<Object> f = BroadcasterFactory.getDefault().lookup("/*").broadcast("Hello"); try { f.get(); } catch (InterruptedException e) { e.printStackTrace(); } catch (ExecutionException e) { e.printStackTrace(); } Obiously, you can create more broadcasters with different names and assign them to different resources. Then from any service you could use the BroadcasterFactory to get the appropriate broadcaster to send a message to certain clients.

Categories : Gwt

How to change sitemaster for guest in asp.net?
You can set master page run time on the specific condition. There is a Event Page_PreInit who will be executing just before the page render. We have to do code in this event like below protected void Page_PreInit(object sender, EventArgs e) { if (Membership.GetUser() == null) //check the user weather user is logged in or not this.Page.MasterPageFile = "~/General.master";//master page with menu else this.Page.MasterPageFile = "~/myMaster.master";//master page with out menu } we can change the content of master page from inherited page too like below Master.FindControl("menu").Visible = true;

Categories : Asp Net

NFS hang from Vagrant guest to OSX
You don't give enough detail on the specific configuration (e.g., the exports file, the fstab file, firewall config, etc.) for a specific answer. Here are some ideas though: In the fstab try adding the "hard,intr" flags to the mount options -- this makes it possible to kill processes waiting for I/O on a dead mount. Also make sure your firewall is open for rpc calls and the rpc-statd service is running. Also figure out what version of nfs you're running and that you have the correct TCP/UDP ports open. If NFS v4 isn't working out, maybe try NFS v3. Finally, are you connecting via IP address or hostname? Hostname is great, but make sure it always resolves correctly -- maybe in your /etc/hosts file. Alternatively, hard-code the IP addresses so there is no chance of name resolution faili

Categories : PHP

Where is guest ring-3 code run in VM environment?
Let's talk about VMX, which is Intel VT-x's design. Intel VT-x introduces two new modes to solve this problem: VMX root mode and VMX non-root mode, which are for host and guest respectively. Both modes have ring 0~3, which means the host and guest will not share the same ring level. A hypervisor running in ring 3 of VMX root mode, when it decides to transfer the CPU control to a guest, the hypervisor lanuch VMLAUNCH instruction, which allows transfer to VMX non-root mode from VMX root mode. Then guest ring 3 code now is able to automatically executing in VMX non-root mode. All of this is supported by Intel VT-x. No binary translation or instruction emulation is needed for running guest. Of course ring 3 of VMX non-root mode has less privilege and power. For example, when a guest ring 3

Categories : Windows

How to get the time zone of a guest user
I am assuming, you already have guest_user in any object, to actually use that user's time zone the most common pattern is to simply create a private method in your ActionController and run it as an around filter. around_filter :user_time_zone, :if => :guest_user def user_time_zone(&block) Time.use_zone(guest_user.time_zone, &block) end Hope this will help. Thanks

Categories : Ruby On Rails

specifying proxy settings for apt-get in Ubuntu guest
Setting the proxy for apt seems correct. So as you said your host OS is M$ Windows. It is possible that you need to set the domain in your username and do something like this: Acquire::http::Proxy "http://domainusername:password@tmg:8080/"; Anyway i think the best way to share internet with guest OSes in VMware is NAT.

Categories : Ubuntu

a list of ways that I can differentiate between a guest and another in php
These answers might help. What is the best way to implement "remember me" for a website? To your list, I'd like to add HTML5 local storage. Even if not supported by all browsers and far less secure than the options you already listed.

Categories : PHP

What is the best way to track a guest's historical interaction
I would be concerned about the reliability of the cookies as well. Firstly, people tend to use several browsers on several devices, and cookies approach limit it to one. Or, what is worse, different results on different devices. Secondly, one could just delete cookies. Of course, it's not an often thing, but still - you won't achieve 100% working thing. What I would suggest is to add an optional login/register system for those who DO NEED that function, and I think that if they need it, they will register.

Categories : PHP

ssh to execute all commands in guest machine
I am not sure I understood the question: to execute a local script, but on another machine: scp /path/to/local/script.bash pi@192.168.1.1:/tmp/copy_of_script.bash and then, if it's copied correctly, execute it: ssh pi@192.168.1.1 "chmod +x /tmp/copy_of_script.bash" ssh pi@192.168.1.1 "bash /tmp/copy_of_script.bash" to have the remote video (Xwindows, etc) commands appear on the originating machine: replace : ssh with : ssh -x (to allow X-Forwarding, which will allocate a DISPLAY automatically on the remote machine that will be tunneled back to the originating machine) for the X-forwarding to work, there are some requirements (usually ok by default, but ymmv) : read more about those requirements in this Unix.se answer

Categories : Unix

Disable URL /web/guest/home in liferay
You're probably referring to a user's personal page - this is a public page and you can configure Liferay so that users don't have personal (public) pages. As long as the users have personal and public pages, they are, well, public: If you navigate to them, you'll get to see them. You can make them private pages (thus the URL will change to /group/12345/home) and - at least - require a login. But as long as you have a public page in your portal, it will be shown. (You can also change permissions on every single page, but that's probably what you also don't want) Can you block on apache level? Yes. But why change at the entry point when you can also get rid of the root cause - e.g. properly configure the pages and access levels. Also, Liferay 5.2.3 is quite ancient now. You should really

Categories : Apache

VT-X on windows 7 cannot be recognized by Guest OS(Ubuntu 12.04) with virtualbox
Thanks for answering, I finally installed Ubuntu 12.04 with windows7 on the same hard disk. As for my issue, virtualbox don't support full virtuallization, so I could not see any VMX feature in my Guest OS, but vmware do, which suits me well.

Categories : Linux

Magento newsletter - check if GUEST is already subscribed
Take a look @ Class : Mage_Newsletter_SubscriberController Path : /app/code/core/Mage/Newsletter/controllers/SubscriberController.php Table : newsletter_subscriber Assuming that you create a custom module that overriding Mage_Newsletter_SubscriberController Around line # 63 Add (Above $status = Mage::getModel('newsletter/subscriber')->subscribe($email);) $emailExist = Mage::getModel('newsletter/subscriber')->load($email, 'subscriber_email'); if ($emailExist->getId()) { Mage::throwException($this->__('This email address is already exist.')); } To overriding Newsletter controller in frontend <?xml version="1.0" encoding="iso-8859-1"?> <config> <frontend> <routers> <newsletter> <args>

Categories : PHP

Unreliable QueryPerformanceCounter on a KVM Windows 2008 RC2 guest
From Game Timing and Multicore Processors: [...] While QueryPerformanceCounter and QueryPerformanceFrequency typically adjust for multiple processors, bugs in the BIOS or drivers may result in these routines returning different values as the thread moves from one processor to another. So, it's best to keep the thread on a single processor. [...] The system clock uses a different mechanism to return time. It's generally more reliable at the cost of resolution.

Categories : Linux

Display "guest" on webpage if User is not logged in
Use JSTL tag libraries. JSP scriplets are deprecated almost a decade back. This is how you do it using JSTL: Welcome, <c:out value = "${sessionScope.username == null ? 'Guest' : sessionScope.username}" /> See also: Our JSTL tag Wiki. How to avoid Java Code in JSP-Files?

Categories : Java

mongodb allows guest connection even when auth is enabled
Yes basicly you can connect without authentication but cannot do nearly anything. you can run db.serverBuildInfo() db.version() db.adminCommand({ping:1}) db.adminCommand({whatsmyuri:1}) db.adminCommand({features:1}) for example, maybe some other commands. Which is seems a bit pain for me is that able to run: for(var i=0;i++<20000;){db.adminCommand({forceerror:1})} Which generates a bit of log. I checked out the sources, and you can see this behaviour is kind of bug. The sources of the shell startup are in : https://github.com/mongodb/mongo/blob/master/src/mongo/shell/dbshell.cpp Basicly there are two type of test running against the parameter values given in password and username arguments for mongoshell. The startup checks when you provided a --password parameter and hav

Categories : Mongodb

PayPal Express Checkout Guest Option
As per the doc (quote below), the SOLUTIONTYPE value will not work -- until you enable the "PayPal Account Optional" setting. (see link for info & video) SOLUTIONTYPE (Optional) Type of checkout flow. It is one of the following values: Sole – Buyer does not need to create a PayPal account to check out. This is referred to as PayPal Account Optional. Mark – Buyer must have a PayPal account to check out. Note: You can pass Mark to selectively override the PayPal Account Optional setting if PayPal Account Optional is turned on in your merchant account. Passing Sole has no effect if PayPal Account Optional is turned off in your account.

Categories : PHP

Not able to view text from guest book I created?
To change it to descending change. $sql="SELECT * FROM $tbl_name"; to $sql="SELECT * FROM guestbook ORDER BY datetime DESC"; I'm not sure what you mean by "I am not able to view the text". Does this mean your guestbook php page shows no entries, or the database is blank? I'm not sure why you did $tbl_name = "guestbook"; but that just confuses things. Also your spaces are all over the place so I'm not sure if that's the problem. Try changing... $sql="INSERT INTO $tbl_name(name, email, comment, datetime)VALUES('$name', '$email', '$comment', '$datetime')"; into $sql="INSERT INTO guestbook (name, email, comment, datetime) VALUES ('$name', '$email', '$comment', '$datetime')";

Categories : PHP

Direct pci device assignment in a nested QEMU guest
You can refer to Redhat's KVM guide: Assigning a PCI device. I followed the instruction and successfully assigned a PCI device to guest before, but not sure if this works in a nested KVM environment. You can try to assign the same PCI device with identical PCI ID to the guest and nested one. For your problems, in my memory, KVM supports nested virtualization. And if you want to use direct device assignment, enabling VT-d is a must.

Categories : Linux

TeamCity RESTful API guest login sometimes doesn't work
I also experienced such a behavior, depending on data, which I request from Rest - when I am requesting agent configuration, it is not allowed to be served to guest (at least, this seems so, starting from 7.1 till 8.0.2)

Categories : Rest

How do I find the current Guest OS version in Azure without Management API?
The Guest OS is a level above your application. If this was a desktop app, you've need to use a management Library call, to call out of your application, to ask the operating system what it is. you'll need to something similar from within your role, to call out to the management API. If this is something to do often, you should just cache the result in your application once you retrieve it the first time and maybe update the cache once per hour/day depending on your needs. http://msdn.microsoft.com/en-us/library/windowsazure/gg456325.aspx

Categories : Azure

can we use Bluetooth dongle both on Host (xp) and Guest android OS at a time
I think what you want to do is not possible (I also wanted to do it but couldn't make it work). What would be interesting, is if it's possible to connect 2 separate BT dongles to a single computer and get them to pair.

Categories : Android



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